#include<bits/stdc++.h>
using namespace std;
int main()
{
	int x, n, sum = 0;
	cin>>n;
	while(cin>>x)
		sum += x;
	cout<<n*(n+1)/2-sum;	
	return 0;
}

